Optimal. Leaf size=148 \[ \frac {a x \sqrt {a^2+2 a b x+b^2 x^2} \sqrt {c+d x^2}}{2 (a+b x)}+\frac {b \sqrt {a^2+2 a b x+b^2 x^2} \left (c+d x^2\right )^{3/2}}{3 d (a+b x)}+\frac {a c \sqrt {a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{2 \sqrt {d} (a+b x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {984, 655, 201,
223, 212} \begin {gather*} \frac {b \sqrt {a^2+2 a b x+b^2 x^2} \left (c+d x^2\right )^{3/2}}{3 d (a+b x)}+\frac {a x \sqrt {a^2+2 a b x+b^2 x^2} \sqrt {c+d x^2}}{2 (a+b x)}+\frac {a c \sqrt {a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{2 \sqrt {d} (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 212
Rule 223
Rule 655
Rule 984
Rubi steps
\begin {align*} \int \sqrt {a^2+2 a b x+b^2 x^2} \sqrt {c+d x^2} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \left (2 a b+2 b^2 x\right ) \sqrt {c+d x^2} \, dx}{2 a b+2 b^2 x}\\ &=\frac {b \sqrt {a^2+2 a b x+b^2 x^2} \left (c+d x^2\right )^{3/2}}{3 d (a+b x)}+\frac {\left (2 a b \sqrt {a^2+2 a b x+b^2 x^2}\right ) \int \sqrt {c+d x^2} \, dx}{2 a b+2 b^2 x}\\ &=\frac {a x \sqrt {a^2+2 a b x+b^2 x^2} \sqrt {c+d x^2}}{2 (a+b x)}+\frac {b \sqrt {a^2+2 a b x+b^2 x^2} \left (c+d x^2\right )^{3/2}}{3 d (a+b x)}+\frac {\left (a b c \sqrt {a^2+2 a b x+b^2 x^2}\right ) \int \frac {1}{\sqrt {c+d x^2}} \, dx}{2 a b+2 b^2 x}\\ &=\frac {a x \sqrt {a^2+2 a b x+b^2 x^2} \sqrt {c+d x^2}}{2 (a+b x)}+\frac {b \sqrt {a^2+2 a b x+b^2 x^2} \left (c+d x^2\right )^{3/2}}{3 d (a+b x)}+\frac {\left (a b c \sqrt {a^2+2 a b x+b^2 x^2}\right ) \text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{2 a b+2 b^2 x}\\ &=\frac {a x \sqrt {a^2+2 a b x+b^2 x^2} \sqrt {c+d x^2}}{2 (a+b x)}+\frac {b \sqrt {a^2+2 a b x+b^2 x^2} \left (c+d x^2\right )^{3/2}}{3 d (a+b x)}+\frac {a c \sqrt {a^2+2 a b x+b^2 x^2} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{2 \sqrt {d} (a+b x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 84, normalized size = 0.57 \begin {gather*} \frac {\sqrt {(a+b x)^2} \left (\sqrt {c+d x^2} \left (3 a d x+2 b \left (c+d x^2\right )\right )-3 a c \sqrt {d} \log \left (-\sqrt {d} x+\sqrt {c+d x^2}\right )\right )}{6 d (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.08, size = 65, normalized size = 0.44
method | result | size |
default | \(\frac {\mathrm {csgn}\left (b x +a \right ) \left (2 b \left (d \,x^{2}+c \right )^{\frac {3}{2}} \sqrt {d}+3 \sqrt {d \,x^{2}+c}\, d^{\frac {3}{2}} a x +3 \ln \left (\sqrt {d}\, x +\sqrt {d \,x^{2}+c}\right ) a c d \right )}{6 d^{\frac {3}{2}}}\) | \(65\) |
risch | \(\frac {\left (2 b d \,x^{2}+3 a d x +2 b c \right ) \sqrt {d \,x^{2}+c}\, \sqrt {\left (b x +a \right )^{2}}}{6 d \left (b x +a \right )}+\frac {a c \ln \left (\sqrt {d}\, x +\sqrt {d \,x^{2}+c}\right ) \sqrt {\left (b x +a \right )^{2}}}{2 \sqrt {d}\, \left (b x +a \right )}\) | \(88\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.51, size = 128, normalized size = 0.86 \begin {gather*} \left [\frac {3 \, a c \sqrt {d} \log \left (-2 \, d x^{2} - 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) + 2 \, {\left (2 \, b d x^{2} + 3 \, a d x + 2 \, b c\right )} \sqrt {d x^{2} + c}}{12 \, d}, -\frac {3 \, a c \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) - {\left (2 \, b d x^{2} + 3 \, a d x + 2 \, b c\right )} \sqrt {d x^{2} + c}}{6 \, d}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {c + d x^{2}} \sqrt {\left (a + b x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.93, size = 79, normalized size = 0.53 \begin {gather*} -\frac {a c \log \left ({\left | -\sqrt {d} x + \sqrt {d x^{2} + c} \right |}\right ) \mathrm {sgn}\left (b x + a\right )}{2 \, \sqrt {d}} + \frac {1}{6} \, \sqrt {d x^{2} + c} {\left ({\left (2 \, b x \mathrm {sgn}\left (b x + a\right ) + 3 \, a \mathrm {sgn}\left (b x + a\right )\right )} x + \frac {2 \, b c \mathrm {sgn}\left (b x + a\right )}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {{\left (a+b\,x\right )}^2}\,\sqrt {d\,x^2+c} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________